import utils from '../../utils/index.js'
Page({
  data: {
  },
  onLoad(options) {
    let {url=''} = options
    this.setData({
        url
    })
  },
  onWebLoad(e){
    console.log(e)
  },
  onWebError(e){
    utils.prefix.showModal({
      title: '',
      content: e.detail.errMsg,
      showCancel: false,
      confirmText: '确定',
      confirmColor: '#3CC51F',
      success: (result) => {
        if(result.confirm){
          utils.prefix.navigateBack({
              delta: 1
            });
        }
      },
      fail: ()=>{},
      complete: ()=>{}
    });
    
  }
})